<button class="btn btn-outline-dark" (click)="addSinglepage()">新增</button>


<table class="table table-striped table-dark">
    <thead class="thead-dark">
      <tr>
        <th scope="col">#</th>
        <th scope="col">标题</th>
        <th scope="col">内容</th>
        <th scope="col">图片</th>
        <th scope="col">详细内容</th>
        <th>操作</th>
      </tr>
    </thead>
    <tbody>
      <tr *ngFor="let a of al">
        <th scope="row">1</th>
        <td>{{a.title}}</td>
        <td>{{a.summary}}</td>
        <td>
            <img src="{{a.img}}" width="200" height="150"/>
        </td>
        <td>{{a.detail}}</td>
        <td>
            <button class="btn btn-outline-warning" (click)="updateSinglepage(a.singlepageid)">修改</button>
            <button class="btn btn-outline-danger" (click)="deleteSinglepage(a.singlepageid)" >删除</button>
        </td>
      </tr>
    </tbody>
  </table>